class Client < ActiveRecord::Base
  
  CIVILITE = [
    # Affichage        valeur dans la base
    [ "Monsieur"   ,    "Mr."],
    [ "Madame"    ,     "Mme."],
    [ "Mademoiselle",   "Melle."]
  ]
  
  CODE_CC = [
    # Affichage        valeur dans la base
    [ "Visa"         ,      "visa"],
    [ "Mastercard"   ,      "mastercard"],
    [ "Diners Club"  ,      "diners_club"],
    [ "Amex"         ,      "amex"],
    [ "Japanese Bank",      "japan_bank"]
  ]
  
  has_many :reservations
  has_many :chambres, :through => :reservations 
end
